package mastermind.gui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import mastermind.gui.Frame;
import mastermind.gui.RegisterFrame;

public class RegisterAction extends AbstractAction{

	private Frame mainFrame;
	
	public RegisterAction(Frame frame)
	{
		this.mainFrame = frame;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {

		RegisterFrame frame = new RegisterFrame(mainFrame); //show register frame
		frame.setVisible(true);
	}
	

}
